#ifndef __EKOS_KERNEL_IOAPIC_H__
#define __EKOS_KERNEL_IOAPIC_H__

struct ioapic_t
{
	 int apic_id;
	 physaddr_t phys;
	 uint32_t intr_base;
};

extern volatile struct ioapic_t ioapics[LAPIC_COUNT];

int ioapic_init(void);
void ioapic_enable(void *ioapic, int irq, int cpunum);

#endif
